import com.alibaba.fastjson.JSON;
import com.itheima.pojo.Keyword;
import com.itheima.service.impl.KeywrodServiceImpl;

import java.util.List;

public class test {
    public static void main(String[] args) {
        KeywrodServiceImpl service = new KeywrodServiceImpl();

        List<Keyword> keywords = service.find("java");
        String json = JSON.toJSONString(keywords);
        System.out.println(json);
    }
}
